home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / dev / c / ctags.lha / ctags-3.0.3 / main.h < prev    next >
C/C++ Source or Header  |  1999-02-17  |  2KB  |  52 lines

  1. /*****************************************************************************
  2. *   $Id: main.h,v 7.1 1998/12/07 01:38:00 darren Exp $
  3. *
  4. *   Copyright (c) 1998, Darren Hiebert
  5. *
  6. *   This source code is released for free distribution under the terms of the
  7. *   GNU General Public License.
  8. *
  9. *   External interface to main.c
  10. *****************************************************************************/
  11. #ifndef _MAIN_H
  12. #define _MAIN_H
  13.  
  14. /*============================================================================
  15. =   Include files
  16. ============================================================================*/
  17. #include "general.h"
  18.  
  19. /*============================================================================
  20. =   Data declarations
  21. ============================================================================*/
  22. typedef int errorSelection;
  23.  
  24. enum eErrorTypes { FATAL = 1, WARNING = 2, PERROR = 4 };
  25.  
  26. /*============================================================================
  27. =   Function prototypes
  28. ============================================================================*/
  29. #ifdef NEED_PROTO_MALLOC
  30. extern void *malloc __ARGS((size_t));
  31. extern void *realloc __ARGS((void *ptr, size_t));
  32. #endif
  33.  
  34. extern void error __ARGS((const errorSelection selection, const char *const format, ...));
  35. extern boolean strequiv __ARGS((const char *const s1, const char *const s2));
  36. extern void *eMalloc __ARGS((const size_t size));
  37. extern void *eRealloc __ARGS((void *const ptr, const size_t size));
  38. extern long unsigned int getFileSize __ARGS((const char *const name));
  39. extern boolean isNormalFile __ARGS((const char *const name));
  40. extern boolean isDirectory __ARGS((const char *const name));
  41. extern boolean doesFileExist __ARGS((const char *const fileName));
  42. extern void addTotals __ARGS((const unsigned int files, const long unsigned int lines, const long unsigned int bytes));
  43. extern const char *baseFilename __ARGS((const char *const filePath));
  44. extern boolean isAbsolutePath __ARGS((const char *const path));
  45. extern vString *combinePathAndFile __ARGS((const char *const path, const char *const file));
  46. extern const char *getExecutableName __ARGS((void));
  47. extern int main __ARGS((int argc, char **argv));
  48.  
  49. #endif    /* _MAIN_H */
  50.  
  51. /* vi:set tabstop=8 shiftwidth=4: */
  52.